#ifndef NEOPROGRESSCIRCLE_H
#define NEOPROGRESSCIRCLE_H

#include "stdafx.h"
#include <QWidget>

class NeoProgressCirclePrivate;
class NeoProgressCircle : public QWidget
{
    Q_OBJECT
    NEO_PUBLIC_CREATE(NeoProgressCircle)
    NEO_PUBLIC_PROPERTY_CREATE_NOTIFY_H(int, Value)
    NEO_PUBLIC_PROPERTY_CREATE_H(int, MinimumValue)
    NEO_PUBLIC_PROPERTY_CREATE_H(int, MaximumValue)
    NEO_PUBLIC_PROPERTY_CREATE_H(QColor, BackgroundColor)
    NEO_PUBLIC_PROPERTY_CREATE_H(QColor, ProgressColor)
    NEO_PUBLIC_PROPERTY_CREATE_H(QPixmap, ProgressPixmap)
    NEO_PUBLIC_PROPERTY_CREATE_H(bool, ShowText)
public:
    NeoProgressCircle(QWidget *parent = nullptr);
    ~NeoProgressCircle();

    void setRange(int minimum, int maximum);

protected:
    void resizeEvent(QResizeEvent *event) override;
    void paintEvent(QPaintEvent *event) override;
};

#endif